
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type LangCountryRequest struct {

	TypeId string `json:"type_id" form:"type_id"`

	Code string `json:"code" form:"code"`

	Name string `json:"name" form:"name"`

}

func (r *LangCountryRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *LangCountryRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"type_id": "required",

		"code": "required",

		"name": "required",

	}
}

func (r *LangCountryRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LangCountryRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *LangCountryRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
